package One;

public class ZuoYe2 {
	public static void main(String[] args) {
		System.out.println("~~~~~~~*消费单*~~~~~~~");
		System.out.println("购买商品\t\t单价\t\t个数\t\t金额");
		System.out.println("T恤\t\t¥245\t\t2\t\t¥490");
		System.out.println("网球鞋\t\t¥570\t\t1\t\t¥570");
		System.out.println("网球拍\t\t¥320\t\t1\t\t¥320");
		System.out.println("");
		System.out.println("折扣：\t\t8折");
		System.out.println("消费总金额\t¥1104.0");
		System.out.println("实际交费\t\t¥1500");
		System.out.println("找钱\t\t¥396.0");
		int ZongJinE = 1104;
		System.out.println("本次购物所获的积分：" + ZongJinE * 3 / 100);
		
	}
}
